#include"processtar.h"


void process()
{
    int rate = 0;
    char tar[SIZE_TAR];
    char* rotate = "|/-\\";
    memset(tar,'\0',sizeof(tar));
    int len = strlen(rotate);
    while(rate<=SIZE_RATE)
    {
        printf("[%-100s][%d%%][%c]\r",tar,rate,rotate[rate%len]);
        fflush(stdout);
        usleep(TSIZE);
        tar[rate++]=TYPE;
    }

    printf("\n");

}
